package com.mayikt;

import org.openjdk.jol.info.ClassLayout;

/**
 * @ClassName Test001
 * @Author 蚂蚁课堂余胜军 QQ644064779 www.mayikt.com
 * @Version V1.0
 **/
public class Test001 {
    private static MayiktLock lockMayikt = new MayiktLock();
    private static int count;

    public static void create() {
        synchronized (lockMayikt) {
            count++;
        }
        b();
    }

    public static synchronized void b() {

    }

    public static void main(String[] args) {
//        create();
        MayiktLock lockMayikt = new MayiktLock();
        String s = ClassLayout.parseInstance(lockMayikt).toPrintable();
        System.out.println(s);
        /**
         * 对象头
         */
    }
}
